package com.situ.tos2024.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 功能：规格组
 *
 * @author 千堆雪
 * @version 1.0.0
 * @since 2024/4/10
 * <p>
 * created by 千堆雪 on 2024/4/10 12:02, last modified by 千堆雪 on 2024/4/10 12:02
 */
@Getter
@Setter
@JsonIgnoreProperties("handler")
public class SpecGroup extends AbstractEntity {
    private Integer storeId;//店铺编号
    private String name;//规格组名
    private List<SpecEnum> specItems;//规格组项

    //规格
    @Getter
    @Setter
    public static class Spec extends AbstractEntity {
        private Integer storeId;//店铺编号
        private String name;//规格名称
    }

    //规格枚举
    @Getter
    @Setter
    @JsonIgnoreProperties("handler")
    public static class SpecEnum extends AbstractEntity {
        private Spec spec;
        private String enumValue;
    }
}
